<!-- 人脸入库页面 -->
<div id="upload" class="page-content">
    <div class="page-header">
        <h1 class="page-title">人脸入库</h1>
        <p class="page-description">将新的人脸图片添加到识别库中，扩展系统的识别能力</p>
    </div>

    <div class="dashboard-card">
        <div class="card-header">
            <div class="card-title">
                <i class="fas fa-upload"></i> 上传设置
            </div>
        </div>
        
        <form id="uploadFaceForm" enctype="multipart/form-data">
            <div class="form-group">
                <label class="form-label">选择人脸图片</label>
                <div class="file-upload-area" id="uploadUploadArea">
                    <div class="file-upload-icon">
                        <i class="fas fa-cloud-upload-alt"></i>
                    </div>
                    <div class="file-upload-text">点击或拖拽文件到此处</div>
                    <div class="file-upload-hint">支持 JPG, PNG, JPEG 格式，最大 2MB</div>
                    <input type="file" name="file" id="faceFile" accept="image/*" required style="display: none;">
                </div>
            </div>
            
            <button type="button" id="uploadFaceBtn" class="btn btn-success">
                <i class="fas fa-save"></i> 人脸入库
            </button>
        </form>
        
        <div id="uploadResult"></div>
    </div>
</div> 